package com.fly.sms;

import android.os.Bundle;
import android.view.View;

public class SmsActivity extends BaseActivity implements View.OnClickListener {
	View[] btn = new View[5];

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		View view = this.getView(R.layout.sms);
		content.addView(view);
		title.setText(getText(R.string.nav1_sms));
		btn[0] = findViewById(R.id.btn1);
		btn[1] = findViewById(R.id.btn2);
		btn[2] = findViewById(R.id.btn3);
		btn[3] = findViewById(R.id.btn4);
		btn[4] = findViewById(R.id.btn5);
		btn[0].setOnClickListener(this);
		btn[1].setOnClickListener(this);
		btn[2].setOnClickListener(this);
		btn[3].setOnClickListener(this);
		btn[4].setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btn1:
			forward(SmsSendActivity.class);
			break;
		case R.id.btn2:
			forward(SmsSendLogActivity.class);
			break;
		case R.id.btn3:
			forward(SmsSendNumberActivity.class);
			break;
		case R.id.btn4:
			forward(SmsTaskActivity.class);
			break;
		case R.id.btn5:
			forward(SmsTongjiActivity.class);
			break;
		}
	}
}